using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
 
class Program
{
    static void Main()
    {
        int socore = 0;
 
        int s1x = int.Parse(Console.ReadLine());
        int s1y = int.Parse(Console.ReadLine());
        int s2x = int.Parse(Console.ReadLine());
        int s2y = int.Parse(Console.ReadLine());
 
        int h = int.Parse(Console.ReadLine());
 
        int c1x = int.Parse(Console.ReadLine());
        int c1y = int.Parse(Console.ReadLine());
        int c2x = int.Parse(Console.ReadLine());
        int c2y = int.Parse(Console.ReadLine());
        int c3x = int.Parse(Console.ReadLine());
        int c3y = int.Parse(Console.ReadLine());
 
        //
 
        //int s1x = -11;
        //int s1y = 6;
        //int s2x =-6;
        //int s2y =3;
 
        //int h =1;
 
        //int c1x =-9;
        //int c1y =-3;
        //int c2x =-12;
        //int c2y =-4;
        //int c3x =-6;
        //int c3y = -1;
 
        //
 
        int hit_c1x = c1x;
        int hit_c1y = c1y + 2 * (h - c1y);
        int hit_c2x = c2x;
        int hit_c2y = c2y + 2 * (h - c2y);
        int hit_c3x = c3x;
        int hit_c3y = c3y + 2 * (h - c3y);
 
        int minx = new int();
        int maxx = new int();
        int miny = new int();
        int maxy = new int();
 
        if (s1x > s2x)
        {
            minx = s2x;
            maxx = s1x;
        }
        else
        {
            minx = s1x;
            maxx = s2x;
        }
        if (s1y > s2y)
        {
            miny = s2y;
            maxy = s1y;
        }
        else
        {
            miny = s1y;
            maxy = s2y;
        }
 
        if (hit_c1x > minx && hit_c1x < maxx && hit_c1y > miny && hit_c1y < maxy)
        {
            socore = socore + 100;
 
        }
        if (hit_c2x > minx && hit_c2x < maxx && hit_c2y > miny && hit_c2y < maxy)
        {
            socore = socore + 100;
        }
        if (hit_c3x > minx && hit_c3x < maxx && hit_c3y > miny && hit_c3y < maxy)
        {
            socore = socore + 100;
        }
 
 
 
 
        if ((hit_c1x == minx || hit_c1x == maxx) && (hit_c1y == miny || hit_c1y == maxy))
        {
            socore = socore + 25;
        }
 
        if ((hit_c2x == minx || hit_c2x == maxx) && (hit_c2y == miny || hit_c2y == maxy))
        {
            socore = socore + 25;
        }
 
        if ((hit_c3x == minx || hit_c3x == maxx) && (hit_c3y == miny || hit_c3y == maxy))
        {
            socore = socore + 25;
        }
 
 
 
        if ((hit_c1x > minx && hit_c1x < maxx) && (hit_c1y == miny || hit_c1y == maxy))
        {
            socore = socore + 50;
        }
 
        if ((hit_c1x == minx || hit_c1x == maxx) && (hit_c1y > miny && hit_c1y < maxy))
        {
            socore = socore + 50;
        }
 
        if ((hit_c2x > minx && hit_c2x < maxx) && (hit_c2y == miny || hit_c2y == maxy))
        {
            socore = socore + 50;
        }
 
        if ((hit_c2x == minx || hit_c2x == maxx) && (hit_c2y > miny && hit_c2y < maxy))
        {
            socore = socore + 50;
        }
 
        if ((hit_c3x > minx && hit_c3x < maxx) && (hit_c3y == miny || hit_c3y == maxy))
        {
            socore = socore + 50;
        }
 
        if ((hit_c3x == minx || hit_c3x == maxx) && (hit_c3y > miny && hit_c3y < maxy))
        {
            socore = socore + 50;
        }
 
        Console.WriteLine(socore + "%");
    }
}